package cn.ml.springdemo.zhuangPei;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestZhuangPei {
    public static void main(String[] args) {

        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("ac.xml");
        People people = (People) ac.getBean("people");
        System.out.println(people);
        people.getDog().shout();
        people.getCat().shout();


    }
}
